package com.diy.sigmund.diyorder.service;

import com.diy.sigmund.diycommon.entity.ResultMsg;
import com.diy.sigmund.diyorder.entity.dto.OdSeckillOrderDTO;
import com.diy.sigmund.diyorder.entity.dto.TestBetweenAndDTO;

/**
 * @author ylm-sigmund
 * @since 2021/11/3 22:08
 */
public interface SecKillService {

    /**
     * 抢购
     *
     * @param odSeckillOrderDTO odSeckillOrderDTO
     * @return ResultMsg
     */
    ResultMsg panicBuying(OdSeckillOrderDTO odSeckillOrderDTO);

    /**
     * 查询订单
     *
     * @param odSeckillOrderDTO odSeckillOrderDTO
     * @return ResultMsg
     */
    ResultMsg getOrder(OdSeckillOrderDTO odSeckillOrderDTO);

    ResultMsg testBetweenAnd(TestBetweenAndDTO testBetweenAndDTO);

    ResultMsg decrOneInventory(String commodityId);
}
